package com.anycc.cloud.gateway.service.feign.fallback;

import com.anycc.cloud.gateway.service.feign.RolePermissionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 获取角色权限字符串服务熔断回调
 */
@Service
public class RolePermissionFallbackImpl implements RolePermissionService {
    private static final Logger LOG = LoggerFactory.getLogger(RolePermissionFallbackImpl.class);

    @Override
    public List<String> findFullPermissionString(List<String> roleNames) {
        LOG.error("调用{}异常{}","findFullPermissionString",roleNames);
        return new ArrayList<>();
    }
}
